import request from '@/utils/requestUtil'

// 获取送养宠物评论
export function getPetSendComment(petSendId) {
	return request({
		method: 'GET',
		url: '/pet/petsendcomment/getPetSendComment/' + petSendId,
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}

// 保存送养宠物评论
export function savePetSendComment(id, remark) {
	return request({
		method: 'POST',
		url: '/pet/petsendcomment',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		data: {
			petSendId: id,
			remark: remark
		}
	})
}

// 获取丢失宠物评论
export function getPetLostComment(petLostId) {
	return request({
		method: 'GET',
		url: '/pet/petlostcomment/getPetLostComment/' + petLostId,
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}

// 保存丢失宠物评论
export function savePetLostComment(id, remark) {
	return request({
		method: 'POST',
		url: '/pet/petlostcomment',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		data: {
			petLostId: id,
			remark: remark
		}
	})
}

// 获取团队宠物评论
export function getPetTeamComment(petTeamId) {
	return request({
		method: 'GET',
		url: '/pet/petTeamcomment/getPetTeamComment/' + petTeamId,
		header: {
			'content-type': 'application/json;charset=utf-8'
		}
	})
}

// 保存团队宠物评论
export function savePetTeamComment(id, remark) {
	return request({
		method: 'POST',
		url: '/pet/petTeamcomment',
		header: {
			'content-type': 'application/json;charset=utf-8'
		},
		data: {
			petTeamId: id,
			remark: remark
		}
	})
}